package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    Integer countByDishId(List<Long> ids);

    //新增套餐菜品关系

    void add(List<SetmealDish> setmealDishes);
    //根据id删除菜品关系
    @Delete("delete from setmeal_dish where setmeal_id=#{id}")
    void deleteById(Long id);
}
